package com.lear.mypush;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootUpReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {

		Log.e("HOME", "Receive boot up.");

//		Intent newIntent = new Intent(context, MainActivity.class);
//		newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//		context.startActivity(newIntent);

		 Intent newIntent = new Intent(context, StartupService.class);
		 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		 context.startService(newIntent);
	}
}
